package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.ActivityInfo;

import java.util.*;
public class ActivityInfoExample extends SgExample<ActivityInfoExample.Criteria> {
    public static final Class<ActivityInfo> beanClass = ActivityInfo.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn image;
    public static EntityColumn activityId;
    public static EntityColumn backgroundImg;
    public static EntityColumn activityTitle;
    public static EntityColumn createTime;
    public static EntityColumn type;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        image = listMap.get("image");
        activityId = listMap.get("activityId");
        backgroundImg = listMap.get("backgroundImg");
        activityTitle = listMap.get("activityTitle");
        createTime = listMap.get("createTime");
        type = listMap.get("type");
        }

    public ActivityInfoExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected ActivityInfoExample.Criteria createCriteriaInternal() {
        return new ActivityInfoExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public ActivityInfoExample.Criteria andImageIsNull() {
            return isNull(image);
        }

        public ActivityInfoExample.Criteria andImageIsNotNull() {
            return isNotNull(image);
        }

        public ActivityInfoExample.Criteria andImageEqualTo(String value) {
            return equalTo(image, value);
        }

        public ActivityInfoExample.Criteria andImageNotEqualTo(String value) {
            return notEqualTo(image, value);
        }

        public ActivityInfoExample.Criteria andImageGreaterThan(String value) {
            return greaterThan(image, value);
        }

        public ActivityInfoExample.Criteria andImageGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(image, value);
        }

        public ActivityInfoExample.Criteria andImageLessThan(String value) {
            return lessThan(image, value);
        }

        public ActivityInfoExample.Criteria andImageLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(image, value);
        }

        public ActivityInfoExample.Criteria andImageLike(String value) {
            return like(image, value);
        }

        public ActivityInfoExample.Criteria andImageNotLike(String value) {
            return notLike(image, value);
        }

        public ActivityInfoExample.Criteria andImageIn(List<String> values) {
            return in(image, values);
        }

        public ActivityInfoExample.Criteria andImageNotIn(List<String> values) {
            return notIn(image, values);
        }

        public ActivityInfoExample.Criteria andImageBetween(String value1, String value2) {
            return between(image, value1, value2);
        }

        public ActivityInfoExample.Criteria andImageNotBetween(String value1, String value2) {
            return notBetween(image, value1, value2);
        }
        public ActivityInfoExample.Criteria andActivityIdIsNull() {
            return isNull(activityId);
        }

        public ActivityInfoExample.Criteria andActivityIdIsNotNull() {
            return isNotNull(activityId);
        }

        public ActivityInfoExample.Criteria andActivityIdEqualTo(Long value) {
            return equalTo(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdNotEqualTo(Long value) {
            return notEqualTo(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdGreaterThan(Long value) {
            return greaterThan(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdLessThan(Long value) {
            return lessThan(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(activityId, value);
        }

        public ActivityInfoExample.Criteria andActivityIdIn(List<Long> values) {
            return in(activityId, values);
        }

        public ActivityInfoExample.Criteria andActivityIdNotIn(List<Long> values) {
            return notIn(activityId, values);
        }

        public ActivityInfoExample.Criteria andActivityIdBetween(Long value1, Long value2) {
            return between(activityId, value1, value2);
        }

        public ActivityInfoExample.Criteria andActivityIdNotBetween(Long value1, Long value2) {
            return notBetween(activityId, value1, value2);
        }
        public ActivityInfoExample.Criteria andBackgroundImgIsNull() {
            return isNull(backgroundImg);
        }

        public ActivityInfoExample.Criteria andBackgroundImgIsNotNull() {
            return isNotNull(backgroundImg);
        }

        public ActivityInfoExample.Criteria andBackgroundImgEqualTo(String value) {
            return equalTo(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgNotEqualTo(String value) {
            return notEqualTo(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgGreaterThan(String value) {
            return greaterThan(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgLessThan(String value) {
            return lessThan(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgLike(String value) {
            return like(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgNotLike(String value) {
            return notLike(backgroundImg, value);
        }

        public ActivityInfoExample.Criteria andBackgroundImgIn(List<String> values) {
            return in(backgroundImg, values);
        }

        public ActivityInfoExample.Criteria andBackgroundImgNotIn(List<String> values) {
            return notIn(backgroundImg, values);
        }

        public ActivityInfoExample.Criteria andBackgroundImgBetween(String value1, String value2) {
            return between(backgroundImg, value1, value2);
        }

        public ActivityInfoExample.Criteria andBackgroundImgNotBetween(String value1, String value2) {
            return notBetween(backgroundImg, value1, value2);
        }
        public ActivityInfoExample.Criteria andActivityTitleIsNull() {
            return isNull(activityTitle);
        }

        public ActivityInfoExample.Criteria andActivityTitleIsNotNull() {
            return isNotNull(activityTitle);
        }

        public ActivityInfoExample.Criteria andActivityTitleEqualTo(String value) {
            return equalTo(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleNotEqualTo(String value) {
            return notEqualTo(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleGreaterThan(String value) {
            return greaterThan(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleLessThan(String value) {
            return lessThan(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleLike(String value) {
            return like(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleNotLike(String value) {
            return notLike(activityTitle, value);
        }

        public ActivityInfoExample.Criteria andActivityTitleIn(List<String> values) {
            return in(activityTitle, values);
        }

        public ActivityInfoExample.Criteria andActivityTitleNotIn(List<String> values) {
            return notIn(activityTitle, values);
        }

        public ActivityInfoExample.Criteria andActivityTitleBetween(String value1, String value2) {
            return between(activityTitle, value1, value2);
        }

        public ActivityInfoExample.Criteria andActivityTitleNotBetween(String value1, String value2) {
            return notBetween(activityTitle, value1, value2);
        }
        public ActivityInfoExample.Criteria andCreateTimeIsNull() {
            return isNull(createTime);
        }

        public ActivityInfoExample.Criteria andCreateTimeIsNotNull() {
            return isNotNull(createTime);
        }

        public ActivityInfoExample.Criteria andCreateTimeEqualTo(Date value) {
            return equalTo(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeNotEqualTo(Date value) {
            return notEqualTo(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeGreaterThan(Date value) {
            return greaterThan(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            return greaterThanOrEqualTo(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeLessThan(Date value) {
            return lessThan(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            return lessThanOrEqualTo(createTime, value);
        }

        public ActivityInfoExample.Criteria andCreateTimeIn(List<Date> values) {
            return in(createTime, values);
        }

        public ActivityInfoExample.Criteria andCreateTimeNotIn(List<Date> values) {
            return notIn(createTime, values);
        }

        public ActivityInfoExample.Criteria andCreateTimeBetween(Date value1, Date value2) {
            return between(createTime, value1, value2);
        }

        public ActivityInfoExample.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            return notBetween(createTime, value1, value2);
        }
        public ActivityInfoExample.Criteria andTypeIsNull() {
            return isNull(type);
        }

        public ActivityInfoExample.Criteria andTypeIsNotNull() {
            return isNotNull(type);
        }

        public ActivityInfoExample.Criteria andTypeEqualTo(Integer value) {
            return equalTo(type, value);
        }

        public ActivityInfoExample.Criteria andTypeNotEqualTo(Integer value) {
            return notEqualTo(type, value);
        }

        public ActivityInfoExample.Criteria andTypeGreaterThan(Integer value) {
            return greaterThan(type, value);
        }

        public ActivityInfoExample.Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(type, value);
        }

        public ActivityInfoExample.Criteria andTypeLessThan(Integer value) {
            return lessThan(type, value);
        }

        public ActivityInfoExample.Criteria andTypeLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(type, value);
        }

        public ActivityInfoExample.Criteria andTypeIn(List<Integer> values) {
            return in(type, values);
        }

        public ActivityInfoExample.Criteria andTypeNotIn(List<Integer> values) {
            return notIn(type, values);
        }

        public ActivityInfoExample.Criteria andTypeBetween(Integer value1, Integer value2) {
            return between(type, value1, value2);
        }

        public ActivityInfoExample.Criteria andTypeNotBetween(Integer value1, Integer value2) {
            return notBetween(type, value1, value2);
        }
    }
}